import App from './App';
import Vue from 'vue';

import './uni.promisify.adaptor';
Vue.config.productionTip = false;
// uView组件库
import uView from '@/uni_modules/uview-ui';
Vue.use(uView);

// uni 请求方法
import Request from '@/common/http/request.js';
Vue.prototype.Request = Request;


// 混入下拉刷新
import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin'
Vue.mixin(ZPMixin)


// 定义的一些快捷方法(没什么用处)
import * as utils from '@/common/comFun/utils.js';
Vue.prototype.$utils = utils;


// 注册全局组件
// 自定义底部栏组件
import zdyTabbar from "components/zdy-tabbar.vue";
Vue.component('zdy-tabbar', zdyTabbar);

import qmsTabbar from "components/qms-tabbar.vue";
Vue.component('qms-tabbar', qmsTabbar);

import mcFramework from "@/components/mc-framework/mc-framework.vue";
Vue.component('mcFramework', mcFramework);

// 环形进度总条
import ProcedureStep from "components/Procedure-step.vue";
Vue.component('Procedure-step', ProcedureStep);


// 调用 store vuex 状态管理	
import store from '@/store/index.js';


App.mpType = 'app'
const app = new Vue({
	...App,
	store,
	uView,
})
app.$mount()


// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif